package model

import (
	"go.mongodb.org/mongo-driver/bson/primitive"
	"time"
)

type ShipmentProcessFillAble struct {
	ProcessDate string `json:"processDate" bson:"processDate"`
	ProcessContent string `json:"processContent" bson:"processContent"`
}

func (ShipmentProcess) TableName() string {
	return "shipment_process"
}

func (ShipmentProcess) DbType() string {
	return "mongodb"
}

type ShipmentProcess struct {
	ID                      uint   `json:"ID" bson:"id"`
	ShipmentId              string `json:"shipmentId" bson:"shipmentId"`
	PlanId                  string `json:"planId" bson:"planId"`
	ShopId                  int    `json:"shop_id" bson:"shop_id"`
	Sort                    int    `json:"sort" bson:"sort"`
	ShipmentProcessFillAble `bson:",inline"`
	CreateAt                time.Time `json:"createAt" bson:"createAt"`
	UpdateAt                time.Time `json:"updateAt" bson:"updateAt"`
	CreateUser              string    `json:"createUser" bson:"createUser"`
	UpdateUser              string    `json:"updateUser" bson:"updateUser"`
}

type ShipmentProcessHexID struct {
	HexID primitive.ObjectID `bson:"_id"`
}